package com.chixing.day04.day04Test;

public class SavingAccount extends Account {


  /*  private static final float accInterestRate = 0.4f;

    public SavingAccount(int accountId, String accountName, String accPassword, long accTelno, float accBalance, float annualInterestRate, int accType){
          super(accountId,accountName,accPassword,accTelno,accBalance,accInterestRate,accType);
      }*/

    //重写父类存款方法
    public void depoist(float money) {
        System.out.println("运行子类方法");
    }

    public void withdraw(float money) {
        float accBalance = money;
        System.out.println("取款成功！余额为:" + accBalance);
    }
}
